<?php use_helper('Object') ?>
<?php echo form_tag('user_update') ?>

<?php echo object_input_hidden_tag($user, 'getId') ?>

<div class="formstyle">
  <div class="header"><h3>Modifica utente</h3></div>
  <ul class="form">
    <li>
      <div class="fright">
         <?php echo object_input_tag($user, 'getFirstname'); ?>
      </div>
      <?php echo label_for ('firstname', 'Nome:') ?>
      <div id="r_username_msg" class="f5">Il tuo nome</div>
    </li>
    <li>
      <div class="fright">
         <?php echo object_input_tag($user, 'getLastname'); ?>
      </div>
      <?php echo label_for ('lastname', 'Cognome:') ?>
      <div id="r_username_msg" class="f5">Il tuo cognome</div>
    </li>
    <li>
      <div class="fright">
         <?php echo object_input_tag($user, 'getTitle'); ?>
      </div>
      <?php echo label_for ('title', 'Titolo:') ?>
      <div id="r_username_msg" class="f5">Must be between 4-20 characters</div>
    </li>
    <li>
      <div class="fright">
         <?php echo object_input_tag($user, 'getPhone'); ?>
      </div>
      <?php echo label_for ('phone', 'Telefono:') ?>
      <div id="r_username_msg" class="f5">Must be between 4-20 characters</div>
    </li>
    <li>
      <div class="fright">
         <?php echo object_input_tag($user, 'getMobile'); ?>
      </div>
      <?php echo label_for ('mobile', 'Cellulare:') ?>
      <div id="r_username_msg" class="f5">Must be between 4-20 characters</div>
    </li>
    <li>
      <div class="fright">
         <?php echo object_input_tag($user, 'getFax'); ?>
      </div>
      <?php echo label_for ('fax', 'Fax:') ?>
      <div id="r_username_msg" class="f5">Must be between 4-20 characters</div>
    </li>
  </ul>
  <div class="submit">
  <?php echo submit_tag('save') ?>
  <?php if ($user->getId()): ?>
  &nbsp;<?php echo link_to('cancel', '@current_user_profile') ?>
<?php else: ?>
  &nbsp;<?php echo link_to('cancel', 'user') ?>
<?php endif; ?>

  </div>
</div>
</form>


